<template>
	<view class="warp">
		<view class="uni-margin-wrap">
			<view class="notice-list-body">
				<view class="uni-list">
					<block v-for="(value, index) in list" :key="index">
						<fsw-item :value="value"></fsw-item>
					</block>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
export default {
	data() {
		return {
			list: [],
			logistics_name: ''
		};
	},

	onLoad(option) {
		this.logistics_name = option.companyKey;
		this.getoLgisticsListData();
	},
	methods: {
		goDetail(e) {
			console.log(e);
			this.$util.redirectTo('/pages/home/search/company-detail/company-detail', { logistics_id: e.id });
		},
		getoLgisticsListData() {
			var data = {
				logistics_name: this.logistics_name
			};
			this.http.sendRequest({
				api: this.api.home.logisticsListApi,
				data: data,
				success: res => {
					console.log(res);
					if (res.code == 1 && res.data) {
						this.list = res.data.data;
					}
				}
			});
		}
	}
};
</script>

<style lang="scss">
@import '../public/css/company-search.scss';
.uni-media-list-text-top {
	// height: 74rpx;
	font-size: 28rpx;
	// overflow: hidden;
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: center;
	.view-left {
		margin-bottom: 16rpx;
		border-radius: 20rpx;
		margin-top: 8rpx;
		padding-left: 6rpx;
		padding-right: 6rpx;
		padding-top: 2rpx;
		padding-bottom: 2rpx;
		background-color: $uni-bg-color-red;
		align-items: center;
		justify-content: center;
		display: flex;
		.text {
			color: white;
			margin-bottom: 0rpx;
			margin-right: 8rpx;
			font-size: 24rpx;
		}
	}
	.image {
		margin-left: 6rpx;
		margin-right: 6rpx;
		width: 28rpx;
		height: 28rpx;
	}
	.item{
		width: 60rpx;
		height: 40rpx;
		display: flex;
		justify-content: center;
		align-items: center;
		
		margin-bottom: 16rpx;
		  
		padding-left: 8rpx;
		padding-right: 8rpx;
		border-radius: 5rpx;
		border: 1px solid $uni-back-color-primary;
	}
	.text {
		font-size: 30rpx;
		margin-top: 0rpx;
		margin-bottom: 16rpx;
	}
	.text1 {
		font-size: 24rpx;
		color: $uni-text-color-primary;
	}

	.text2 {
		font-size: 28rpx;
		color: #8f8f94;
		margin-bottom: 16rpx;
	}
	.text3 {
		font-size: 24rpx;
	}
}
</style>
